package com.ponxu.db.wrap.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.ponxu.db.wrap.RowWrapper;

/**
 * @author xwz
 * 
 */
public class IntegerRowWrapper implements RowWrapper<Integer> {
	private static IntegerRowWrapper instance = new IntegerRowWrapper();

	public static IntegerRowWrapper getInstance() {
		return instance;
	}

	private IntegerRowWrapper() {
	}

	public Integer wrap(ResultSet rs) throws SQLException {
		return rs.getInt(1);
	}
}